﻿<%@ Page Language="C#" MasterPageFile="~/IPMSMasterPage.master" AutoEventWireup="true" CodeFile="OptProjectClass.aspx.cs" Inherits="OptProjectClass" Title="Project Monitoring System" Culture="auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" Visible="false"/>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="margin-left:10px;margin-right:10px;">
        <asp:Panel ID="panelSearch" runat="server">
            <fieldset>
                <legend>
                    <asp:Label ID="lblSearch" runat="server" Text="Search" meta:resourcekey="lblSearchResource1"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td width="100" align="left">
                            <asp:Label ID="lblSearchProjectClass" runat="server" Text="Project Class" meta:resourcekey="lblProjectClassResource1"></asp:Label>
                        </td>
                        <td width="200" align="left">
                            <asp:TextBox ID="txtSearchProjectClass" runat="server"></asp:TextBox>
                        </td>
                        <td width="100" align="left">
                            <asp:Label ID="lblSearchDescription" runat="server" Text="Description:" meta:resourcekey="lblDescriptionResource1"></asp:Label>
                        </td>
                        <td width="100" align="left">
                            <asp:TextBox ID="txtSearchDescription" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Button ID="btnSearch" runat="server" CssClass="submit" Text="Search" CausesValidation="false" meta:resourcekey="btnSearchResource1" onclick="OnClick"/>
                            <asp:Button ID="btnNew" runat="server" CausesValidation="False" CssClass="submit" Text="New Project Class" meta:resourcekey="btnNewProjectResource1" onclick="OnClick" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
        <table width="100%">
            <tr>
                <td align="center" width="100%">
                    <asp:Label ID="lblError" runat="server" ForeColor="Red" Width="100%" CssClass="error"
                        meta:resourcekey="lblErrorResource1"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:Panel ID="panelActive" runat="server" meta:resourcekey="ActivePanelResource1">
            <fieldset>
                <legend>
                    <asp:Label ID="lblActive" runat="server" Text="Active Project Class" meta:resourcekey="lblActiveResource1"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td>
                            <asp:GridView CssClass="Grid" ID="gvActive" runat="server" 
									BackColor="#DEBA84" 
									BorderColor="#660000"
									BorderStyle="Solid" 
									BorderWidth="1px" 
									CellPadding="0" 
									CellSpacing="0" 
									Width="100%"
									Height="1%" 
									AllowPaging="True" 
									PageSize="10" 
									AllowSorting="True" 
									EmptyDataText="No Project Class Record Available!"
									AutoGenerateColumns="False" meta:resourcekey="gvActiveResource1" 
									DataKeyNames="ProjectClass"
									onpageindexchanging="gvActive_PageIndexChanging" 
									onrowcommand="OnRowCommand">
                                <Columns>
                                    <asp:BoundField DataField="ProjectClass" HeaderText="Project Class" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource1"/>
                                    <asp:BoundField DataField="Description" HeaderText="Description" HeaderStyle-Width="400" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource2"/>
                                    <asp:BoundField DataField="UpdateIP" HeaderText="IP Address" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource3"/>
                                    <asp:BoundField DataField="UpdateBy" HeaderText="Updated By" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource4"/>
                                    <asp:BoundField DataField="UpdateDate" HeaderText="Last Update Date" HeaderStyle-Width="200" HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource5"/>
                                    <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center">
                                        <ItemTemplate>
                                            <a href="OptProjectClassUpdate.aspx?ProjectClass=<%# Eval("ProjectClass")%>"><img src="Images/icon-edit.gif" border="0" /></a>
                                            <asp:ImageButton ID="imgBtnDelete" CommandName="halfDelete" runat="server" ImageUrl="Images/icon-delete.jpg" OnClientClick="javascript:return confirm('Do you want to delete the record?');"/>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                                <RowStyle CssClass="GridRowStyle" />
                                <AlternatingRowStyle CssClass="GridAltRowStyle" />
                                <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                                <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                                <FooterStyle CssClass="GridFooterStyle" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
        <asp:Panel ID="panelDeleted" runat="server" meta:resourcekey="ActivePanelResource1">
            <fieldset>
            <legend>
                <asp:Label ID="lblDeleted" runat="server" Text="Deleted Project Class" meta:resourcekey="lblDeletedResource1"></asp:Label>
            </legend>
            <table>
                <tr>
                    <td>
                        <asp:GridView CssClass="Grid" ID="gvDeleted" runat="server" 
								BackColor="#DEBA84" 
								BorderColor="#660000"
								BorderStyle="Solid" 
								BorderWidth="1px" 
								CellPadding="0" 
								CellSpacing="0" 
								Width="100%"
								Height="1%" 
								AllowPaging="True" 
								PageSize="10" 
								AllowSorting="True" 
								EmptyDataText="No Deleted Project Class Record Available!"
								AutoGenerateColumns="False" 
								meta:resourcekey="gvActiveResource1" 
								onpageindexchanging="gvDeleted_PageIndexChanging"
								DataKeyNames="ProjectClass"
								onrowcommand="OnRowCommand">
                            <Columns>
                                <asp:BoundField DataField="ProjectClass" HeaderText="Project Class" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" meta:resourcekey="BoundFieldResource6"/>
                                <asp:BoundField DataField="Description" HeaderText="Description" HeaderStyle-Width="400" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" meta:resourcekey="BoundFieldResource7"/>
                                <asp:BoundField DataField="DeleteIP" HeaderText="IP Address" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" meta:resourcekey="BoundFieldResource8"/>
                                <asp:BoundField DataField="DeleteBy" HeaderText="User" HeaderStyle-Width="100" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" meta:resourcekey="BoundFieldResource9"/>
                                <asp:BoundField DataField="DeleteDate" HeaderText="Date" HeaderStyle-Width="200" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" meta:resourcekey="BoundFieldResource10"/>
                                <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="lbtnRestore" CommandName="Restore" runat="server" ImageUrl="Images/icon-restore.jpg"/>
                                        <asp:ImageButton ID="lbtnFroceDelete" CommandName="ForceDelete" runat="server" ImageUrl="Images/icon-trash.gif" OnClientClick="javascript:return confirm('Do you want to delete the record?');"/>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                            <RowStyle CssClass="GridRowStyle" />
                            <AlternatingRowStyle CssClass="GridAltRowStyle" />
                            <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                            <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                            <FooterStyle CssClass="GridFooterStyle" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
            </fieldset>
        </asp:Panel>
    </div>
</asp:Content>